package com.netty.chat.vo;

import com.netty.chat.message.MessageResponse;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ChatItem {
    //寻找channel的标识符,私聊为对方用户id，群聊为获取群聊唯一标识符
    private String id;
    private String name;
    private String icon;
    private String dateTime;
    private String description;
    private boolean isGroupChat;
    //发送消息的类型
    private Integer MessageType;
    //双方聊天所发的最后一条记录，用于缩放展示
    private String lastMessage;
    //在线状态 1-在线 0-离线
    private Integer online;
    //聊天记录
    private List<MessageResponse> chatRecord;
}
